package com.example.designpatterns.factory.practical;

/**
 * PostgreSQL数据库连接实现
 */
public class PostgreSQLConnection implements DatabaseConnection {
    @Override
    public void connect() {
        System.out.println("连接到PostgreSQL数据库");
    }

    @Override
    public void executeQuery(String query) {
        System.out.println("在PostgreSQL上执行查询: " + query);
    }

    @Override
    public void close() {
        System.out.println("关闭PostgreSQL数据库连接");
    }
} 